/**
 * Created by zxf on 2017/8/29.
 */
import fetch from '@/utils/fetch';

export function companyProfile(data) {
  return fetch({
    url: '/api/company/company-profile',
    method: 'post',
    data
  });
}

export function getDeptInfo(data) {
  return fetch({
    url: '/api/company/getDepartmentMember',
    method: 'post',
    data
  });
}

export function getCompanyProfile(data) {
  return fetch({
    url: 'api/company/get-company-profile',
    method: 'post',
    data
  });
}

export function createDepartment(data) {
  return fetch({
    url: 'api/company/create-department',
    method: 'post',
    data
  });
}

export function getMemberInfo(data) {
  return fetch({
    url: 'api/com/member-info',
    method:'post',
    data
  })
}

export function deleteDepMembers(data) {
  return fetch({
    url: 'api/dep-user/delete',
    method:'post',
    data
  })
}

export function getSubDeps(data) {
  return fetch({
    url: 'api/company/get-sub-deps',
    method:'post',
    data
  })
}

export function batchMoveMember(data) {
  return fetch({
    url: 'api/user-dep/update',
    method:'post',
    data
  })
}

export function depDelete(data) {
  return fetch({
    url: 'api/dep/delete',
    method:'post',
    data
  })
}

